package codelib.spring3struts2hibernate3.biz;


public interface UserService {
	public enum LoginReturnEnum{SUCCESS, PASSWORD_NOT_MATCH, USER_NOT_VALID, FAILED};
	public enum RegisterReturnEnum{SUCCESS, USER_EXISTS, FAILED};
	public enum ResetPasswordrReturnEnum{SUCCESS, USER_NOT_EXISTS, PASSWORD_NOT_MATCH, FAILED};
	
	public LoginReturnEnum login(String userName, String password, String lastIp);
	public RegisterReturnEnum register(String userName, String password, String lastIp);
	public ResetPasswordrReturnEnum resetPassword(String userName, String password, String newPassword);
}
